<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<%	
		pageContext.setAttribute("APP_PATH", request.getContextPath());
	%>
	<script type="text/javascript" src="${APP_PATH }/static/js/jquery-1.12.4.min.js"></script>
  	<link type="text/css" rel="stylesheet" media="all" href="styles/global.css" />
  	<link type="text/css" rel="stylesheet" media="all" href="styles/global_color.css" />
<title>Insert title here</title>
<script type="text/javascript">
function selectchecked() {
			var names = document.getElementsByName("check");                           
            for(var i=0;i<names.length;i++){
            	if(names[i].checked=true){
        			checkBoxValue1 += names[i].value;
            	}
             }
            checkBoxValue = checkBoxValue.substring(0,checkBoxValue.length-1);
		}
</script>
</head>
<body>
        <!-- 包含导航区域 -->
        <jsp:include page="navi.jsp"></jsp:include>
        <!--导航区域结束-->
        <!--主要区域开始-->
        <div class="main">           
            <!--保存操作后的提示信息：成功或者失败-->
            <div id="save_result_info" class="save_success">保存成功！</div>
            <form action="roleUpdateDao" method="get" class="main_form">
                <div class="text_info clearfix"><span>角色名称：</span></div>
                <div class="input_info">
                <!--查询到role_name,power_id集合进行输出显示  -->
                	<c:forEach items="${updaterole}" var="roleUpname" begin="0" end="0">
          				<input type="text" class="width200" value="${roleUpname.roleName}" />
                	</c:forEach>
                    
                    <span class="required">*</span>
                    <div class="validate_msg_medium error_msg">不能为空，且为20长度的字母、数字和汉字的组合</div>
                </div>                    
                <div class="text_info clearfix"><span>设置权限：</span></div>
                <div class="input_info_high">
                    <div class="input_info_scroll">
                    	
                        <ul>
                            <li><input type="checkbox" name ="check"   value="1"/>管理员管理</li>
                            <li><input type="checkbox" name ="check"   value="2" />角色管理</li>
                            <li><input type="checkbox" name ="check"   value="3"/>资费管理</li>
                            <li><input type="checkbox" name ="check"   value="4"/>账务账号</li>
                            <li><input type="checkbox" name ="check"   value="5"/>业务账号</li>
                            <li><input type="checkbox" name ="check"   value="6"/>账单</li>
                            <li><input type="checkbox" name ="check"   value="7"/>报表</li>
                        </ul>
                    </div>
                    <span class="required">*</span>
                    <div class="validate_msg_tiny">至少选择一个权限</div>
                </div>
                <div class="button_info clearfix">
                    <input type="submit" value="保存" class="btn_save" onclick="showResult();" />
                    <input type="button" value="取消" class="btn_save" />
                </div>
            </form> 
        </div>
        <!--主要区域结束-->
        <div id="footer">
            
        </div>
</body>
</html>